<%
=begin
apps: all
platforms: kubernetes, tanzu-application-catalog
id: configure_pod_affinity
title: Configure pod affinity
category: configuration
weight: 40
highlight: 40
=end %>

This chart allows you to set your custom affinity using the *\*.affinity* parameter(s).

As an alternative, you can use the preset configurations for pod affinity, pod anti-affinity, and node affinity available in the <%= variable :repository_name, :platform %>/common chart. To do so, set the *\*.podAffinityPreset*, *\*.podAntiAffinityPreset*, or *\*.nodeAffinityPreset* parameters.

[Learn more about pod affinity](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity).
